<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>fetch数据请求</title>
</head>
<body>
  <div id="app">
  </div>
</body>
<script src="vue.js"></script>
<script src="axios.min.js"></script>
<script>
  new Vue({
    el: '#app',
    mounted () {
      axios.get('https://www.daxunxun.com/banner').then(res => {
        console.log(res.data)
      })

      axios.post('https://www.daxunxun.com/users/login', {
        username:'18813887814',
        password: '1234567'
      }).then(res => {
        console.log(res.data)
      })
    }
    
  })
</script>
</html>